package com.szzg10.pattern.adapter;

public class DogAdapter implements Dog {

	private Duck duck;
	
	public DogAdapter(Duck duck) {
		this.duck = duck;
	}
	
	@Override
	public void run() {
		duck.run();
	}

	@Override
	public void bite() {
		System.out.println("It can not be bite!!!");
	}

	@Override
	public void quack() {
		duck.quack();
	}

}
